package com.example.collector;

public class RequestInfo {

    private String apiName;
    private long startTime;
    private long endTime;
    
    public RequestInfo(String apiName, long startTime, long endTime) {
        this.apiName = apiName;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public long getRespTime() {
        return endTime - startTime;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    // public RequestInfo(String name, double startTime, double endTime) {
    //     this.apiName = name;
    //     this
    // }

    
    
}
